// 构建请求随机单证号参数 (自定义单证号)
// import {store} from '@/store/index'

export default (ctx, next) =>{
    let store = ctx.store;
    let carFormStore = store.state['carFormStore'];
    let currentSingleType = carFormStore['currentSingleType'];
    let orderId = carFormStore['indiaOrderInfo']['orderId'];
    let viCompany  = carFormStore['indiaOrderInfo']['viCompany'];
    let singleType  = carFormStore['indiaSingle'][currentSingleType]['type'];
    
    ctx.params = {
        singleType,
        viCompany,
        orderId
    }
    
    next()
}